import pygame
from pygame.locals import *
from sys import exit
import os

def main():    
    # instrucoes
    largura_screen, altura_screen = 640,480
    os.environ["SDL_VIDEO_CENTERED"] = "1"
    pygame.init()
    screen = pygame.display.set_mode((largura_screen, altura_screen),0,32)
    pygame.display.set_caption("Crazy Boxes")

    instrucao = pygame.image.load("imagens" + os.sep + "instrucoes.jpg").convert()

    while 1:
        for event in pygame.event.get():
            if event.type == KEYDOWN:
                if event.key == K_ESCAPE:
                    return
        
        screen.blit(instrucao, (0,0))

        pygame.display.update()
        
if __name__ == "__main__":
    main()
